<%--
  Created by IntelliJ IDEA.
  User: 凉城
  Date: 2021/12/20
  Time: 11:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

获取请求对象：${pageContext.request}<br>
获取协议：${pageContext.request.scheme}<br>
获取服务器IP地址：${pageContext.request.serverName}<br>
获取服务器端口：${pageContext.request.serverPort}<br>
获取客户端IP地址：${pageContext.request.remoteHost}<br>
获取客户端端口：${pageContext.request.serverPort}<br>
获取工程路径：${pageContext.request.contextPath}<br>
获取请求方法：${pageContext.request.method}<br>
获取session对象的ID值：${pageContext.session.id}<br>
<%--获取session对象的ID值：${pageContext.sessionid}<br>--%>
获取session对象的ID值：${pageContext.request.session.id}<br>
获取cookie：${cookie.JSESSIONID.value}

</body>
</html>
